package annotation;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("annotation.xml");
		
//		TestObject to = (TestObject) ctx.getBean("testObject");
//		System.out.println(to);
		
		UserController uc = (UserController) ctx.getBean("userController");
		System.out.println(uc);
		uc.execute();
		
//		UserRepositoryImp ur = (UserRepositoryImp) ctx.getBean("userRepository");
//		System.out.println(ur);
//		
//		UserService us = (UserService) ctx.getBean("userService");
//		System.out.println(us);
		
	}
}
